package com.example.springboot.service;

import com.example.springboot.bean.Employee;
import org.springframework.data.domain.Pageable;

/**
 * Created by tang on 2017/11/21.
 */
public interface EmployeeService {

    public Employee findByName(String name);

    public Employee findByName2(String name);

    public Employee findById(int id);

    public void save(Employee employee);

    public void delete(int id);

    public void update(Employee employee);

    public Iterable<Employee> findAll(Pageable pageable);

    public long count();
}
